package com.xuecheng.base.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description: 分页查询结果模型类
 * User: ws
 * Date: 2024-06-08
 * Time: 23:54
 *
 * POST /content/course/list?pageNo=2&pageSize=1
 * Content-Type: application/json
 *
 * {
 *   "auditStatus": "202002",
 *   "courseName": "",
 *   "publishStatus":""
 * }
 * ###成功响应结果
 * {
 *   "items": [
 *     {
 *       "id": 26,
 *       "companyId": 1232141425,
 *       "companyName": null,
 *       "name": "spring cloud实战",
 *       "users": "所有人",
 *       "tags": null,
 *       "mt": "1-3",
 *       "mtName": null,
 *       "st": "1-3-2",
 *       "stName": null,
 *       "grade": "200003",
 *       "teachmode": "201001",
 *       "description": "本课程主要从四个章节进行讲解： 1.微服务架构入门 2.spring cloud 基础入门 3.实战Spring Boot 4.注册中心eureka。",
 *       "pic": "https://cdn.educba.com/academy/wp-content/uploads/2018/08/Spring-BOOT-Interview-questions.jpg",
 *       "createDate": "2019-09-04 09:56:19",
 *       "changeDate": "2021-12-26 22:10:38",
 *       "createPeople": null,
 *       "changePeople": null,
 *       "auditStatus": "202002",
 *       "auditMind": null,
 *       "auditNums": 0,
 *       "auditDate": null,
 *       "auditPeople": null,
 *       "status": 1,
 *       "coursePubId": null,
 *       "coursePubDate": null
 *     }
 *   ],
 *   "counts": 23,
 *   "page": 2,
 *   "pageSize": 1
 * }
 */


@Data
@AllArgsConstructor
public class PageResult<T> implements Serializable {

    // 数据列表
    private List<T> items;

    //总记录数
    private long counts;

    //当前页码
    private long page;

    //每页记录数
    private long pageSize;


}
